
export let mixin = {
    methods: {
        ispc(){
            var userAgentInfo = navigator.userAgent;
            var Agents = new Array("Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod");  
            var flag = true;  
            for (var v = 0; v < Agents.length; v++) {  
                if (userAgentInfo.indexOf(Agents[v]) > 0) { flag = false; break; }  
            }  
            return flag;  
       },
       showMenu( vm , num ){
            vm.target.nextSibling.style.maxHeight = num + "em";
            console.log(vm);
       },
       hideMenu( vm ){
            vm.target.nextSibling.style.maxHeight = "0";
       }
    }
}


